package com.tank;

import java.util.HashMap;
import java.util.Map;

/**
 * new 一个窗口
 */
public class Main {

    public static void main(String[] args) {

        Map map = new HashMap();
        map.get("123");

        TankFrame tankFrame = new TankFrame();
        /**
         * 循环调用重绘repaint，repaint每次会调用paint方法实现重绘的效果
         */
        while (true){
            try {
                Thread.sleep(50);
                tankFrame.repaint();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        }
    }
}
